package cn.unknowpupil.init.common.constant;

/**
 * @Description= 描述。</br>
 * <p>
 *
 * </p>
 * @Author= <a> w10g </a>
 * @Since= 2020/7/5 18=59
 */
public class SecurityConstants {

    public final static String HEADER = "Authorization";
    public final static String API_HEADER = "X-Token";
    public static final String TOKEN_PREFIX ="Bearer ";
//    public final static String ADMIN_HEADER = "X-Token";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    public final static String BLACKlIST_LOCK_KEY = "BLACKlIST_LOCK_KEY_";

    /**
     * @七牛云存储空间配置
     */
    public final static String ACCESS_KEY = "9Mycj_-gOGsKca7VSp8bikAAzfsccv9z-gHYof0y";
    public final static String SECRET_KEY = "qYlexkSZB3aBYtHdPu0snRkCbmgkOBtRlHzK-Ng3";
    public final static String BUCKET = "yt-business-coupon";
    /**
     * [{'zone0'='华东'}, {'zone1'='华北'},{'zone2'='华南'},{'zoneNa0'='北美'},{'zoneAs0'=''}]
     */
    public final static String ZONE = "zone2";
    public final static long EXPIRE_IN_SECONDS = -1;
    /**
     * code 过期时间
     */
    public final static int EXPIRE_CODE_SECONDS = 300;

 /**
  * @其他配置
  */
    /**
     * 用于IP定位转换
     */
    public static final String REGION = "内网IP|内网IP";
    /**
     * win 系统
     */
    public static final String WIN = "win";
    /**
     * mac 系统
     */
    public static final String MAC = "mac";


    /** 是否重定向（否） */
    public static final String NO_REDIRECT = "noRedirect";
    public static final int USER_COUNT = 10;



    /**朋友圈链接*/
    public static String FRIEND_USER= "http://friend.yunfandavip.com/#/index?secret=";


    public static boolean isAddressEnabled() {
        return true;
    }








    /**
     * 获取下载路径
     */
    public static final String DOWNLOAD_PATH = "download/";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";


    public static final String API_URL = "http://124.71.23.75:8082";

    /**
     * 常用接口
     */
    public static class Url {
        // 免费图床
        public static final String SM_MS_URL = "https://sm.ms/api";
        // IP归属地查询
        public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
    }


}
